import request from '@/utils/request'

// 查询咨询时长列表
export function listAskTime(query) {
  return request({
    url: '/system/askTime/list',
    method: 'get',
    params: query
  })
}

// 查询咨询时长详细
export function getAskTime(id) {
  return request({
    url: '/system/askTime/' + id,
    method: 'get'
  })
}

// 新增咨询时长
export function addAskTime(data) {
  return request({
    url: '/system/askTime',
    method: 'post',
    data: data
  })
}

// 修改咨询时长
export function updateAskTime(data) {
  return request({
    url: '/system/askTime',
    method: 'put',
    data: data
  })
}

// 删除咨询时长
export function delAskTime(id) {
  return request({
    url: '/system/askTime/' + id,
    method: 'delete'
  })
}
